package or.exa.cangguan.mapper;

import or.exa.cangguan.common.Page;
import or.exa.cangguan.entity.dto.InStoreDto;
import or.exa.cangguan.entity.po.InStore;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface InStoreMapper {
    int deleteByPrimaryKey(Integer id);

    Integer selectStoreById(@Param("id") Integer id);

    int insert(InStore record);

    int insertSelective(InStore record);

    List<InStoreDto> selectInStore(@Param("storeId") Integer storeId,
                                   @Param("inNumber") String inNumber,
                                   @Param("inPlanTime")Date inPlanTime,
                                   @Param("page") Page page);
    Integer selectInStoreCount(@Param("storeId") Integer storeId,
                               @Param("inNumber") String inNumber,
                               @Param("inPlanTime")Date inPlanTime);

    int updateByPrimaryKeySelective(InStore record);

    int updateByPrimaryKey(InStore record);

    int updateInStatus(@Param("id") Integer id,@Param("inStatus") String inStatus,@Param("inPlanTime") Date inPlanTime);

}